#pragma once

#include "GBToolTipBitmapButton.h";


class CGameBrowserLeftPanelSerchControl : public CWnd
{
	DECLARE_DYNAMIC(CGameBrowserLeftPanelSerchControl)

public:
	CGameBrowserLeftPanelSerchControl();
	virtual ~CGameBrowserLeftPanelSerchControl();

public:
	BOOL CreateGameBrowserLeftPanelSerchControl(CWnd *pParent,UINT id);


private:	
	CGBToolTipBitmapButton m_wndSearchButton;

	CEdit				   m_wndEditSearchContent;
	CRect				   m_EditControlPosition;
private:
	void 	PaintOnMemoryDC(CDC &hdcMem);
protected:
	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg void OnSize( UINT, int, int );
	afx_msg void OnDestroy();
	
	afx_msg void OnSearchGame();
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};


